<template>
  <div class="mine">
    <h3>饿了么</h3>
    <div class="block">
      <img src="../../assets/logo.png" alt="">
      <div class="infor">
        <span>9527</span>
        <button>账户设置</button>
      </div>
    </div>
    <div class="card">
      <span class="font1">吃货卡</span>
      <span>|</span>
      <span class="font2">吃货豆 <span class="font3">1461</span> </span>
      <p>升级超级吃货卡，每月得无门槛红包</p>
    </div>
    <div class="block">
        <div class="title">
            常用工具
        </div>
        <div class="list">
            <div class="btn" @click="toAddress">
          <van-icon name="location-o" size="24" />
          <span>我的地址</span>
        </div>
        <div class="btn">
          <van-icon name="phone-circle-o"  size="24"/>
          <span>我的客服</span>
        </div>
        <!--             点击跳转到收藏页 -->
        <div class="btn" @click="toCollect"> 
          <van-icon name="like-o"  size="24"/>
          <span>店铺关注</span>
        </div>
        <div class="btn">
          <van-icon name="star-o"  size="24"/>
          <span>评价有礼</span>
        </div>
    </div>
  </div>
  </div>
</template>

<script>
export default {
    methods:{
        toCollect(){
            this.$router.push('/collect')
        },
        toAddress(){
          this.$router.push('/address')
        }
    }
}
</script>

<style lang='scss' scoped>
html,body{
  width: 100%;
  height: 100%;
}


h3{
  margin-left: 20px;
}
.block img{
  width: 62px;
  height: 62px;
  border-radius: 50%;
}
.infor{
  width: 80%;
  height: 40px;
  position: absolute;
  top: 10px;
  right: 0;
  span{
    margin-left: 5px;
  }
  button{
  position: absolute;
  right: 10px;
  top: 20px;
  border: 1px solid #000;
  border-radius: 15px;
  font-size: 14px;
}
  
}
.card{
  margin-left:10px;
  width: 94%;
  height: 62px;
  border-radius: 5px;
  background:linear-gradient(to right,#4294ed,#5ec0f8);
  .font1{
   font-size: 18px;
   font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   font-style: italic;
  //  margin: 5px 5px;
   font-weight: bold;
   color: #fff;
    
  }
  .font2{
    // margin: 5px 5px;
    color: #fff;
    font-size: 12px;
  }
  .font3{
    font-size: 18px;

  }
  span{
    color: #fff;
    margin: 5px 5px;
  }
  p{
    font-size: 12px;
    color: #a5d3f7;
    margin-left: 5px;
  }

}

.block{
  margin: 10px;
  width: 94%;
  background-color: #f5f5f5;
  border-radius: 5px;
  position: relative;
  .title{
    font-weight: bold;
    padding-left: 10px;
    padding-top: 10px;
  }
  .list{
    display: flex;
    justify-content: space-around;
    align-content: center;
    font-size: 14px;
    .btn{
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px 0;
      i{
        margin-bottom: 10px;
      }
    }
  }
}
</style>